import type { goodsDetailItem } from '@/types/goods'
import { http } from '@/utils/http'

export const getGoodsAPI = (id: number) => {
  return http<goodsDetailItem>({
    url: `/goods?id=${id}`,
    method: 'GET',
  })
}
